package com.atguigu.gmall.product.client;

import com.atguigu.gmall.model.product.BaseCategoryView;
import com.atguigu.gmall.model.product.SkuInfo;
import com.atguigu.gmall.model.product.SpuSaleAttr;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * description:
 * create by sxy 2021/5/13
 */
@Component
public class DegradedProductFeignClient  implements ProductFeignClient{

    @Override
    public SkuInfo getSkuInfo(Long skuId) {
        //这里写降级代码 或者转发到首页
        return null;
    }

    @Override
    public BaseCategoryView getBaseCategoryView(Long category3Id) {
        return null;
    }

    @Override
    public List<SpuSaleAttr> getSpuSaleAttrValueChecked(Long skuId, Long spuId) {
        return null;
    }

    @Override
    public Map getValuesSkuJson(Long spuId) {
        return null;
    }

    @Override
    public BigDecimal getPrice(Long skuId) {
        return null;
    }
}
